<?php

namespace App\Admin\Repositories\Mental;

use App\Models\Mental\Results as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class Results extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    public function getOptions(){
        $list=\App\Models\Mental\Lists::all();
        $data=[];
        foreach ($list as $item){
            $data[$item->id]=$item->title;
        }
        return $data;
    }
}
